programming4us
           
 
 
Sharepoint

SharePoint 2010 : Enforce Custom Validation on a Column

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
12/1/2010 11:52:23 AM
Most column types support a rudimentary type of validation, allowing you to select whether the column must have a value (in most cases). Some columns are even more specific, requiring you to, for example, specify a minimum and a maximum for a Number column. However, sometimes you need more validation options than are available.

Some SharePoint columns support a formula-based validation mechanism similar to Microsoft Excel formulas. This mechanism is available for columns under the Column Validation heading, and this heading is collapsed by default. Expanding this section reveals two additional settings that you can set for the column.

The first option is the formula. Here you can type a formula that is evaluated when the user tries to save the value for that column. For example, you can add a formula to prevent the word test from being used as a value:

=[column_name]<>"test"

In this example, you replace column_name with the name of the actual column you are validating, as shown in Figure 1.

Figure 1. Setting custom column validation on a text field.


The second option you can set in this section is the message that is displayed to the user when validation fails. For example, you can write The word "test" is not an appropriate value for this column. This message is displayed to the user below the column in red text, as shown in Figure 2.

Figure 2. The column validation prevents a user from submitting a task with the title test.


You can also enforce validation based on comparison between two columns.

Other -----------------
- SharePoint 2010 : Add a Site Column to a List or Document Library
- SharePoint 2010 : Add a Column to a List or Document Library
- SharePoint 2010 : Create a New Survey
- SharePoint 2010 : Create a New List
- SharePoint 2010 : Create a New Folder in a Document Library
- SharePoint 2010 : Create a New Document Library
- SharePoint 2010 : Open the Create Dialog for Lists and Libraries
- SharePoint 2010 : Use a Slide Library
- SharePoint 2010 : See What Files or List Items Are Waiting for Your Approval
- SharePoint 2010 : See What Files or List Items Are Waiting for Your Approval
- SharePoint 2010 : Approve or Reject a File or List Item
- SharePoint 2010 : Restore an Earlier Version of a File or List Item
- SharePoint 2010 : See What Files or List Items Are Checked Out to You
- SharePoint 2010 : Publish a File or List Item
- SharePoint 2010 : Check In and Check Out a File or List Item
- SharePoint 2010 : Use the Datasheet View to Add, Edit, or Delete Items and Files
- SharePoint 2010 : Edit the Properties of a File or List Item
- sharepoint 2007 : Search Options in MOSS
- sharepoint 2007 : Search in WSS
- SharePoint 2010 : Recover a Deleted File or List Item
 
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
- First look: Apple Watch

- 3 Tips for Maintaining Your Cell Phone Battery (part 1)

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
programming4us programming4us